package com.kedacom.general.feign;

import com.alibaba.fastjson.JSONObject;
import com.kedacom.general.result.ResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "ctserverSearch", url = "${searchServer.url:http://dolphin-dev.kedacom.com/search-server}",
        configuration = FeignCTserverConfig.FeignJTConfig.class)
public interface FeignCTserverClient {
    /**
     * 获取地址信息
     */
    @GetMapping("/geocode/reverse-geocoding")
    ResponseMessage<List<JSONObject>> getLocationServer(@RequestParam("location") String location);

}
